impulse response calculation